<?php

require "./administration/Libraries/Tools/phpmailer/phpmailer.php";

$filename = 'images/mail/newsletter.html';

$mail = new PHPMailer();

$mail->PluginDir = "";
$mail->IsHTML(TRUE);
$mail->CharSet = "utf-8";
$mail->IsMail();
$mail->Timeout = 10;
$mail->From = "system@csme.fr";
$mail->FromName = utf8_encode("CSME Back Office");
$mail->Subject = 'Test Newsletter';
$body = file_get_contents($filename);


$body = str_replace('%SERVER%','http://csme', $body);



echo $body;

$mail->Body = $body;
$mail->AddAddress("alex@lbn.pe");
$mail->AddAddress("lbnstd@yahoo.fr");
$mail->AddAddress("joseluis@lbn.pe");
$mail->AddAddress("alex.cambour@gmail.com");
$mail->Send();